package com.qlylkj.lbk.share


import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.forest.core.etx.getCompatDrawable
import com.qlylkj.lbk.R

import com.ysyc.ytszapp.share.ShareScene


class ShareSceneAdapter(data: MutableList<ShareScene>) : BaseQuickAdapter<ShareScene, BaseViewHolder>(
    R.layout.item_dialog_share_scene, data) {

    override fun convert(helper: BaseViewHolder, item: ShareScene?) {
        helper.apply {
            item?.apply {
                setText(R.id.shareSceneNameText, name)
                setImageDrawable(R.id.shareSceneImage, mContext.getCompatDrawable(resId))
            }
        }
    }
}